<?php

	@session_start();
	$access_token = $_SESSION['access_token'];
	$suser = $access_token['user_id'];
?>
<h1>Create a new Visualine Image</h1>

<div>Use this form to add a new image for everyone to use in the Visualine. Some points to consider:<br />
<ul>
	<li>The image you use must be your own (i.e. you hold the copyright)</li>
	<li>Image dimensions must not exceed 512x512</li>
<?php
/*	<li>If you are adding a textpath, each path entry must be on a single line. The entry is separated by commas, and it of the form:<br /><i>letter size, letter angle, letter x co-ordinate, letter y co-ordinate, letter color</i></li>
	<li>Textpaths require 140 entries (yes, that is a lot of work)</li>
	<li>If your image is accepted, we will manually load it to our server from the URL you provide.</li>
*/
?>
</ul></div><br />

<form method="post" action="_createimg.php" enctype="multipart/form-data">
<input type="hidden" name="suser" value="<?php echo $suser; ?>" />
<table>
<tr><td>Name:</td></tr>
<tr><td><input type = "text" name="title" value="" /></td></tr>
<tr><td>Font color:</td></tr>
<tr><td><input type = "text" name="fontcolor" value="" /></td></tr>
<tr><td>Font name:</td></tr>
<tr><td>
<select name="fontname">
<option value="Aquabase.ttf">Aquabase</option>
<option value="DejaVuSerif.ttf">DejaVu (Serif)</option>
<option value="handwriting.ttf">Handwriting</option>
<option value="JOURNAL.ttf">Journal</option>
<option value="KOMIKAX_.ttf">Komikax</option>
<option value="lcd.ttf">LCD</option>
<option value="scoreboard.ttf">Scoreboard</option>
<option value="scream.ttf">Scream</option>
<option value="typewriter.ttf">Typewriter</option>
</select>
</td></tr>
<tr><td>Font size:</td></tr>
<tr><td>
<select name="fontsize">
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="14">14</option>
<option value="16">16</option>
<option value="18">18</option>
<option value="20">20</option>
<option value="24">24</option>
<option value="26">26</option>
</select>
</td></tr>

<?php
/*
<tr><td>Text Path:</td></tr>
<tr><td><textarea rows="5" cols="35" name="textpath" />Example:
20, 0, 12, 24, ffffff
20, 0, 12, 44, ffffff</textarea></td></tr>
*/
?>
<tr><td>Text Offset Left:</td></tr>
<tr><td><input type = "text" name="t_offl" value="" /></td></tr>
<tr><td>Text Offset Top:</td></tr>
<tr><td><input type = "text" name="t_offt" value="" /></td></tr>
<tr><td>Text Area Width:</td></tr>
<tr><td><input type = "text" name="t_boxw" value="" /></td></tr>
<tr><td>Image File:</td></tr>
<tr><td><input type = "file" name="imageurl" value="" /></td></tr>

<tr><td align="right"><input type = "submit" name="submit_invest" value="Send" /><input type="reset" /></td></tr>
</table>
</form>

 
